package com.citic.netty.common.protocol.response;

import com.citic.netty.common.protocol.Command;
import com.citic.netty.common.protocol.Packet;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class LoginResponsePacket extends Packet{

	private static final long serialVersionUID = 1L;

	private boolean success;

    private String reason;

    private String userId;

    private String username;

    @Override
    public Byte getCommand() {
        return Command.LOGIN_RESPONSE;
    }

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}
